package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

@Mapper
public interface NursingPlanMapper {

    List<NursingPlanVo> selectList();

    void insert(NursingPlan nursingPlan);

    Page<NursingPlanVo> selectPage(String name, Integer status);

    NursingPlan selectById(Long id);

    void updateStatus(@Param("id") Long id, @Param("status") Integer status);

    void deletePlan(Long id);

    void update(NursingPlan nursingPlan);

    @MapKey(value = "id")
    List<Map> countFind(List<Long> collect);
}
